home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
COMMUNIC
/
1321.ZIP
/
LYNXT3.ARC
/
LYNXSEND.SLT
< prev
next >
Wrap
Text File
|
1989-02-05
|
901b
|
40 lines
// LYNXSEND.SLT
// ------------
//
// Lynx upload script for Telix 3.1x
//
// by Ross Beresford (February 1989)
//
//
// This script will send files using the Lynx protocol; it uses Telix's
// active port and baud rate to transmit the list of files specified in
// the Telix upload command.
//
// This script should be specified as the "Upload Filename" field of an
// External Protocol entry in the Telix configuration.
str lynxargs[255] = "s /"; // specify fixed arguments here
main()
{
str port[8], baud[8];
// get Telix's port and baud rate as strings
itos(get_baud(), baud);
itos(get_port(), port);
// build the Lynx argument list
strcat(lynxargs, port);
strcat(lynxargs, " /");
strcat(lynxargs, baud);
strcat(lynxargs, " ");
strcat(lynxargs, _ext_filespec);
// run the Lynx program
run("lynx", lynxargs, 0);
// all done
alarm(1);
}